package com.ruoyi.station.domain;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.NoArgsConstructor;

/**
 * 站点对象 s_station
 *
 * @author ruoyi
 * @date 2021-08-05
 */
@Data
@ApiModel(description = "站点实体类")
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("s_station")
public class SStation
{
    private static final long serialVersionUID=1L;

    /** 主键ID */
    @ApiModelProperty(value = "主键ID" )
    @TableId(value="ID" ,type = IdType.ASSIGN_UUID)
    private String id;

    /** 站点名称 */
    @Excel(name = "站点名称" )
    @ApiModelProperty(value = "站点名称" )
    @TableField("station_name")
    private String stationName;

    /** 站点类型 */
    @Excel(name = "站点类型" )
    @ApiModelProperty(value = "站点类型" )
    @TableField("station_type")
    private String stationType;

    /** 电压等级 */
    @Excel(name = "电压等级" )
    @ApiModelProperty(value = "电压等级" )
    @TableField("kv")
    private String kv;

    /** 所属区域 */
    @Excel(name = "所属区域" )
    @ApiModelProperty(value = "所属区域" )
    @TableField("area")
    private String area;

    /** 投运日期 */
    @JsonFormat(pattern = "yyyy-MM-dd" )
//    @Excel(name = "投运日期" , width = 30, dateFormat = "yyyy-MM-dd" )
    @ApiModelProperty(value = "投运日期" )
    @TableField("operation_date")
    private Date operationDate;

    /** 联系电话 */
    @Excel(name = "联系电话" )
    @ApiModelProperty(value = "联系电话" )
    @TableField("tel")
    private String tel;

    /** 调度等级 */
    @ApiModelProperty(value = "调度等级" )
    @TableField("dispatch_level")
    private String dispatchLevel;

    /** 光缆出口数量 */
    @Excel(name = "光缆出口数量" )
    @ApiModelProperty(value = "光缆出口数量" )
    @TableField("optical_out_num")
    private Long opticalOutNum;

    /** 地址 */
    @ApiModelProperty(value = "地址" )
    @TableField("addr")
    private String addr;

    /** 经度 */
    @Excel(name = "经度" )
    @ApiModelProperty(value = "经度" )
    @TableField("longitude")
    private String longitude;

    /** 纬度 */
    @Excel(name = "纬度" )
    @ApiModelProperty(value = "纬度" )
    @TableField("latitude")
    private String latitude;

    /** 传输网上联速率 */
    @Excel(name = "传输网上联速率" )
    @ApiModelProperty(value = "传输网上联速率" )
    @TableField("network_rate")
    private String networkRate;

    /** 传输网下联带宽 */
    @Excel(name = "传输网下联带宽" )
    @ApiModelProperty(value = "传输网下联带宽" )
    @TableField("network_bw")
    private String networkBw;

    /** 产权单位 */
    @Excel(name = "产权单位" )
    @ApiModelProperty(value = "产权单位" )
    @TableField("property_unit")
    private String propertyUnit;

    /** 创建者 */
    @TableField("create_by")
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    /** 更新者 */
    @TableField("update_by")
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value =  "update_time",fill = FieldFill.UPDATE)
    private Date updateTime;

    /** 删除标志（0代表存在 2代表删除） */
    @ApiModelProperty(value = "删除标记" )
    @TableLogic(value = "0",delval = "2")
    private String delFlag;

    /**
     * 机房数据
     */
    @TableField(exist = false)
    private List<SMachineRoom> sMachineRooms;
}
